<?PHP include("header.php");

$table='settings';
$id='setting_id';
$catch='setting_name';

include 'h/default_process_form.php';
printformheader('Settings',$_GET['cmd']);
begin_form($_GET['cmd'],$id,NULL);


p_input('setting_name',$o,$e);	
p_input('setting_value',$o,$e);	
p_input('setting_category',$o,$e);	


printsubmit("Save");
end_form($_GET['cmd']);
printformfooter("Back","index.php",NULL,NULL,NULL,NULL);


	
	$dsetting=get_sql('settings','setting_id',NULL,NULL);
	$hsetting[]='Name';
	$hsetting[]='Value';
	$hsetting[]='Category';
	

	$hsetting[]='Action';
	$ssetting[]='setting_name';
	
	$ssetting[]='setting_value';
	$ssetting[]='setting_category';
	


	$lsetting['Edit']='settings.php?cmd=edit&setting_id=';

	$asetting['Delete']='a/delete_content.php';
	
	
	printformheader('View Settings',$message);

	
	p_table($hsetting,$dsetting,$lsetting,"class='itable'",$ssetting,NULL);
 	printformfooter("Back","index.php",NULL,NULL,NULL,NULL); 




include("footer.php");?>